Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
@atlaskit/theme
Advanced tools
@atlaskit/theme is a theming library provided by Atlassian for creating consistent and customizable themes across Atlassian products. It offers utilities for managing colors, spacing, typography, and other design tokens, making it easier to maintain a cohesive design system.
Colors
The @atlaskit/theme package provides a set of predefined colors that can be used to maintain consistency across your application. The colors are organized by their usage and intensity.
const { colors } = require('@atlaskit/theme');
const primaryColor = colors.B400;
console.log(primaryColor); // Outputs: #0052CC
Spacing
The package offers a spacing utility based on a grid system. This helps in maintaining consistent spacing throughout the application.
const { gridSize } = require('@atlaskit/theme');
const spacing = gridSize() * 2;
console.log(spacing); // Outputs: 16 (assuming gridSize is 8)
Typography
Typography utilities are provided to ensure consistent font sizes and families across the application. These utilities can be used to style text elements in a uniform manner.
const { fontSize, fontFamily } = require('@atlaskit/theme');
const headingStyle = {
fontSize: fontSize.heading,
fontFamily: fontFamily.heading
};
console.log(headingStyle); // Outputs: { fontSize: '24px', fontFamily: 'Arial, sans-serif' }
Theming
The @atlaskit/theme package includes a ThemeProvider component and a useTheme hook to apply and access custom themes throughout your application. This allows for dynamic theming and easy customization.
const { ThemeProvider, useTheme } = require('@atlaskit/theme');
const MyComponent = () => {
const theme = useTheme();
return <div style={{ color: theme.colors.text }}>Hello, World!</div>;
};
const App = () => (
<ThemeProvider theme={{ colors: { text: '#000000' } }}>
<MyComponent />
</ThemeProvider>
);
styled-components is a popular library for styling React applications using tagged template literals. It allows for dynamic theming and scoped styles, similar to @atlaskit/theme, but with a more flexible and powerful API for creating custom styles.
Emotion is a performant and flexible CSS-in-JS library. It offers similar theming capabilities as @atlaskit/theme, with a focus on performance and developer experience. Emotion provides both styled components and a css prop for applying styles.
Theme UI is a library for building consistent, themeable React applications. It provides a theming context and design tokens, similar to @atlaskit/theme, but with additional utilities for building design systems and responsive styles.
The Atlaskit theme framework, helpers, and the ADG color palette.
FAQs
Theme contains solutions for global theming, colors, typography and other useful mixins.
The npm package @atlaskit/theme receives a total of 148,278 weekly downloads. As such, @atlaskit/theme popularity was classified as popular.
We found that @atlaskit/theme demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.